/// code : 0
/// data : {"userId":285,"accessToken":"4643d93547be4641ba8d3315bca76080","refreshToken":"1dc8972453e04ce0a0cc3fcc9a2f4725","expiresTime":1716167397803,"openid":null}
/// msg : ""
///
class LoginBean {
  late int? code;
  late Data? data;
  late String? msg;

  LoginBean({this.code, this.data, this.msg});

  LoginBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data?.toJson();
    }
    data['msg'] = msg;
    return data;
  }
}

class Data {
  late int? userId;
  late String? accessToken;
  late String? refreshToken;
  late int? expiresTime;
  late String? openid;

  Data(
      {this.userId,
        this.accessToken,
        this.refreshToken,
        this.expiresTime,
        this.openid});

  Data.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    accessToken = json['accessToken'];
    refreshToken = json['refreshToken'];
    expiresTime = json['expiresTime'];
    openid = json['openid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userId'] = userId;
    data['accessToken'] = accessToken;
    data['refreshToken'] = refreshToken;
    data['expiresTime'] = expiresTime;
    data['openid'] = openid;
    return data;
  }
}
